package top.zsc.cloud.common.constants;

public class ConstantsKey {

    public interface Session{
        /**
         * 登录的session用户
         */
        String USER = "user";
        /**
         * 登录的权限信息
         */
        String PERMISSION = "permission";
        /**
         * 表单防重token
         */
        String TOKEN = "token";
        /***
         * @title:<h3> 钉钉cookie单点登录ke <h3>
         * @author: Enzo
         * @date: 2019-1-17 19:22
         * @params
         * @return
         **/
        String TICKET_COOKIE_KEY = "conch_sso_ticket";

        String PERMISSION_BTNS="permissionBtns";
    }
    public interface Cookie{


    }
    /**
     * @title:<h3> http请求常量 <h3>
     * @author: Enzo
     * @date: 2018-11-2 21:57
     * @params
     * @return
     **/
    public interface HttpMethod {
        String GET = "GET";
        String HEAD = "HEAD";
        String POST = "POST";
        String PUT = "PUT";
        String PATCH = "PATCH";
        String DELETE = "DELETE";
        String OPTIONS = "OPTIONS";
        String TRACE = "TRACE";

    }

    /**
     * 乐观锁字段名
     */
    public interface Field{
        String VERSION="version";
        String DELETED="isDelete";
        /***
         * @title:<h3> 单点登录票据字段 <h3>
         * @author: Enzo
         * @date: 2019-1-17 20:31
         * @params
         * @return
         **/
        String TICKET ="TICKET";
    }
}
